package com.speed_run.mapper;

import com.speed_run.model.UserAuth;
import com.speed_run.vo.ModifyPwdVo;
import org.apache.ibatis.annotations.Param;

public interface AuthMapper{
    public void saveAuth(UserAuth auth);
    public UserAuth checkUser(String authId);
    public UserAuth login(@Param("username") String userName, @Param("password") String password);
    public void updateUserAuth(@Param("column") String column, @Param("userId") String userId , @Param("value") String value);
    public int  getAuthByTelAuth(String authId);
    public int  checkOldPwd(@Param("authPwd") String pwd, @Param("userId") String userId);
    public void updatePwd(@Param("authPwd") String pwd, @Param("userId") String userId );
    public int checkUserByTel(String tel);
    public void updatePwdByTel(@Param("authPwd") String pwd, @Param("authId") String userId );
}
